package com.easonji.attendance.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 节假日表
 * </p>
 *
 * @author easonji
 * @since 2018-09-22
 */

@TableName("att_holiday")

public class Holiday extends Model<Holiday> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "holi_id", type = IdType.AUTO)
    private Integer holiId;

    @NotEmpty(message = "名称不能为空")
    @TableField("holi_name")
    private String holiName;

    @NotEmpty(message = "节假日不能为空")
    @TableField("holi_date")
    private String holiDate;

    @TableField("holi_memo")
    private String holiMemo;

    @TableField("holi_create_user")
    private Integer holiCreateUser;

    @TableField("holi_create_date")
    private Date holiCreateDate;

    @TableField("holi_update_user")
    private Integer holiUpdateUser;

    @TableField("holi_update_date")
    private Date holiUpdateDate;

    public Integer getHoliId() {
        return holiId;
    }

    public void setHoliId(Integer holiId) {
        this.holiId = holiId;
    }
    public String getHoliName() {
        return holiName;
    }

    public void setHoliName(String holiName) {
        this.holiName = holiName;
    }
    public String getHoliDate() {
        return holiDate;
    }

    public void setHoliDate(String holiDate) {
        this.holiDate = holiDate;
    }
    public String getHoliMemo() {
        return holiMemo;
    }

    public void setHoliMemo(String holiMemo) {
        this.holiMemo = holiMemo;
    }
    public Integer getHoliCreateUser() {
        return holiCreateUser;
    }

    public void setHoliCreateUser(Integer holiCreateUser) {
        this.holiCreateUser = holiCreateUser;
    }
    public Date getHoliCreateDate() {
        return holiCreateDate;
    }

    public void setHoliCreateDate(Date holiCreateDate) {
        this.holiCreateDate = holiCreateDate;
    }
    public Integer getHoliUpdateUser() {
        return holiUpdateUser;
    }

    public void setHoliUpdateUser(Integer holiUpdateUser) {
        this.holiUpdateUser = holiUpdateUser;
    }
    public Date getHoliUpdateDate() {
        return holiUpdateDate;
    }

    public void setHoliUpdateDate(Date holiUpdateDate) {
        this.holiUpdateDate = holiUpdateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.holiId;
    }

    @Override
    public String toString() {
        return "Holiday{" +
        "holiId=" + holiId +
        ", holiName=" + holiName +
        ", holiDate=" + holiDate +
        ", holiMemo=" + holiMemo +
        ", holiCreateUser=" + holiCreateUser +
        ", holiCreateDate=" + holiCreateDate +
        ", holiUpdateUser=" + holiUpdateUser +
        ", holiUpdateDate=" + holiUpdateDate +
        "}";
    }
}
